package com.android.net.api

import com.camera.base.bean.CheckAppUpgradeResponse
import okhttp3.ResponseBody
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Header
import retrofit2.http.Streaming
import retrofit2.http.Url

interface ApiService {

    // 新增检查更新接口
    @GET("yl_client/upgrade.php?appName=T26_1378_")
    fun checkForUpdate(): Call<CheckAppUpgradeResponse>

    // 新增下载APK接口，使用Streaming注解支持断点续传
    @Streaming
    @GET
    suspend fun downloadApk(
        @Url url: String,
        @Header("Range") range: String
    ): ResponseBody


}



